package com.panasonic.web.domain.cms;

import com.panasonic.common.annotation.Excel;
import com.panasonic.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 试卷问题对象 cms_exam_question
 * 
 * @author lwf
 * @date 2021-11-16
 */
public class CmsExamQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 题干 */
    @Excel(name = "题干")
    private String title;

    /** 类型： 0 选择题  1 提空题 2 其他 */
    @Excel(name = "类型： 0 选择题  1 提空题 2 其他")
    private Integer type;

    /** 试卷id */
    @Excel(name = "试卷id")
    private Long examId;

    /** 选项 */
    @Excel(name = "选项")
    private String options;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    /** 分数 */
    @Excel(name = "分数")
    private Integer score;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 试卷id */
    @Excel(name = "分数id")
    private Long scoreId;

    public Long getScoreId() {
        return scoreId;
    }

    public void setScoreId(Long scoreId) {
        this.scoreId = scoreId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }

    public String getOptions() {
        return options;
    }

    public void setOptions(String options) {
        this.options = options;
    }

    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("type", getType())
            .append("examId", getExamId())
            .append("options", getOptions())
            .append("answer", getAnswer())
            .append("score", getScore())
            .append("scoreId", getScoreId())
            .append("sort", getSort())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
